package com.baida.retail.tasksystem.event.event;

import lombok.Getter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

/**
 * 定义事件 关键点要继承ApplicationEvent
 */
@Getter
@ToString
public class BlackListEvent extends ApplicationEvent {
    private String address;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     * @param address
     */
    public BlackListEvent(Object source, String address) {
        super(source);
        this.address = address;
    }
}
